﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CBMS.Interfaces;
using CBMS.Business;

namespace CBMS.Uc
{
    public partial class ucMakeBookingStep1 : BaseControl
    {
        IStaffRepository staffRep { get; set; }
        public ucMakeBookingStep1()
        {
            staffRep = new StaffRepository();
            InitializeComponent();
            LoadDatGird();
        }

        private void LoadDatGird()
        {
            int toTal = 0;
            var lstObj = staffRep.SearchStaffsBySomeCondition(" where 1= 1 ", 0, 20, string.Empty, string.Empty, ref toTal);
            dgvStaffs.DataSource = lstObj;
        }
    }
}